<?php
class Cms_Delete_Pgsql extends Cms_Adapter_Pgsql_Abstract
	implements Cms_Delete_Interface
{
	public function deleteRow(array $params)
	{
		$result = array('result' => false);
		
		// Efetiva delete
		try {
			$result['result'] = (bool) $this->delete(
				$this->getAdapter()->quoteInto(
					$params['c'].' = ?',
					$params['v'],
					(is_numeric($params['v'])) ? 'integer' : 'string'
				)
			);
		} catch(Exception $e) {
			// @TODO: Mensagem do sistema
			$result['error_message'] = $e->getMessage();
		}
		
		return $result;
	}
}